package com.atguigu.gmall.jvm;

/**
 * @author 陈昆昆
 * @version 1.0
 * @date 2020/6/4 12:25
 */
public class StackRun {
    public static void main(String[] args) {
        StackRun stackRun = new StackRun();
        stackRun.method1();
    }
    public  void method1(){
        System.out.println("method1开始了");
        method2();
        System.out.println("method1即将结束了");
    }

    private  int method2() {
        int i = 10;
        System.out.println("method2开始了");
        int m = (int) method3();
        System.out.println("method2即将结束");
        return i+m;
    }

    private  double method3() {

        System.out.println("method3开始了");
        double j = 10.0;
        System.out.println("method3即将结束");
        return j;
    }

}
